﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;

namespace CodeGenerator.Interface
{
    interface IGetDatabaseInfo
    {
        /// <summary>
        /// 获取指定数据库的所有表名
        /// </summary>
        /// <param name="database">数据库名</param>
        /// <param name="conn">数据库连接对象</param>
        /// <returns></returns>
        DataTable GetTableName(string database, SqlConnection conn);
        DataTable GetField(string tableName, SqlConnection conn);
        DataTable GetField(string database, string tablename, SqlConnection conn);
    }
}
